package vip.xiaonuo.modular.xyethnic.constant;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

public interface EthnicConstant {

    interface SexConstant{
        Long MAN_SEX =1L;
        Long WOMAN = 2L;
    }

    interface OldDataConstant{
        Integer NEW_DATA =1;
        Integer OLD_DATA = 2;
    }

    interface ExistUserConstant{
        Long EXIST_YES =1L;
        Long EXIST_NO = 2L;
    }

    interface BindFlagConstant{

        // 无需审核
        Integer NON_PRO = 0;

        // 未审核
        Integer NOT_PRO = 1;

        // 无需审核
        Integer OK_PRO = 2;
        // 审核失败
        Integer FAIL_PRO = 3;
    }

    interface RelationshipConstant{


        // 父亲
        String father = String.valueOf(1);

        // 母亲
        String mother = String.valueOf(2);
        // 配偶
        String spouse = String.valueOf(3);

        // 兄妹
        String brother = String.valueOf(4);

        // 儿子
        String son = String.valueOf(5);

        // 女儿
        String daughter = String.valueOf(6);

        // 始祖判定条件
        Set<String> sourceLevel = new HashSet<>(Arrays.asList(father,spouse,son,daughter));

        // 配偶判定条件
        Set<String> spouseLevel = new HashSet<>(Arrays.asList(son,daughter,spouse));

        // 儿子女儿判定条件
        Set<String> sonLevel = new HashSet<>(Arrays.asList(mother,spouse,brother,son,daughter));

        Set<String> sonfLevel = new HashSet<>(Arrays.asList(father,brother,son,daughter));

        Set<String> allLevel = new HashSet<>(Arrays.asList(father,mother,spouse,brother,son,daughter));
        Set<String> allMoveLevel = new HashSet<>(Arrays.asList(father,brother,son,daughter));



    }

}
